<?php
include '../php/functies.php';
//Taal instellen
if(isset($_SESSION['main'])){
	$mainarray = $_SESSION['main'];
	$taal = $mainarray['taal'];
}else{
	if(isset($_COOKIE['language'])){
		$taal = $_COOKIE['language'];
		$mainarray['taal'] = $taal;
		$_SESSION['main'] = $mainarray;
	}else{
		$taal =  getDefaultLanguage();
		$mainarray['taal'] = $taal;
		$_SESSION['main'] = $mainarray;
		$expire=time()+60*60*24*30;
		setcookie('language', $taal, $expire);
	}//if
}//if
require('../language/'.$taal.'.php');
?>
<section class="maincontent" id="sechome">
 	<h2>Home</h2>
	<p><?php echo lang('WM'); ?></p>
   <img class="img_home" src="img/image.jpg" alt="Afbeelding"/>
   <p><a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.liacs.nl%2F~mpost%2F" title="HTML 5 Valid" onclick="_gaq.push(['_trackEvent', 'home','html5valid']);return true;">HTML 5 Valid</a></p>
  	<br/>
   <img src="http://www.w3.org/html/logo/badge/html5-badge-h-css3-semantics.png" width="165" height="64" alt="HTML5 Powered with CSS3 / Styling, and Semantics" title="HTML5 Powered with CSS3 / Styling, and Semantics">
</section>